import requestProxy from '@/utils/request';
const { request } = requestProxy;

// BP列表
export function getBPList(params) {
  return request({
    url: '/admin/BPManage/list',
    method: 'get',
    params
  });
}

// 添加BP
export function BPCreate(data) {
  return request({
    url: '/admin/BPManage/create',
    method: 'post',
    data
  });
}

// 编辑BP
export function BPEdit(data) {
  return request({
    url: '/admin/BPManage/edit',
    method: 'put',
    data
  });
}

// 删除BP
export function BPDelete(id) {
  return request({
    url: `/admin/BPManage/delete/${id}`,
    method: 'delete'
  });
}
